package com.sdx.console.video.web.query;

import com.ibeetl.admin.core.annotation.Query;
import com.ibeetl.admin.core.util.enums.CoreDictType;
import com.ibeetl.admin.core.web.query.PageParam;
import java.util.Date;
import com.sdx.common.utils.Utils;
/**
 *咨询视频查询
 */
public class ConsultVideoQuery extends PageParam {
    @Query(name = "标题", display = true)        
    private String title;
    @Query(name = "视频类型 code_dict  VIDEO_TYPE", display = true)        
    private Integer videoType;
    @Query(name = "可用标记 1、可用，0、不可用", display = true)        
    private Integer videoStatus;
    @Query(name = "创建时间", display = true)        
	private String createdTime;
	private Date createdTimeStart;
	private Date createdTimeEnd;
    public String getTitle(){
        return  title;
    }
    public void setTitle(String title ){
        this.title = title;
    }
    public Integer getVideoType(){
        return  videoType;
    }
    public void setVideoType(Integer videoType ){
        this.videoType = videoType;
    }
    public Integer getVideoStatus(){
        return  videoStatus;
    }
    public void setVideoStatus(Integer videoStatus ){
        this.videoStatus = videoStatus;
    }
	public String getCreatedTime(){
		return  createdTime;
	}
	public void setCreatedTime(String createdTime ){
		this.createdTime = createdTime;
		Date[] timePair = Utils.parseQueryTime(createdTime);
		if (timePair!=null && timePair[0]!=null) {
			this.createdTimeStart = timePair[0];
		}
		if (timePair!=null && timePair.length==2 && timePair[1]!=null) {
		this.createdTimeEnd = timePair[1];
		}

	}
	public Date getCreatedTimeStart(){
		return  createdTimeStart;
	}
	public void setCreatedTimeStart(Date createdTimeStart ){
		this.createdTimeStart = createdTimeStart;
	}
	public Date getCreatedTimeEnd(){
		return  createdTimeEnd;
	}
	public void setCreatedTimeEnd(Date createdTimeEnd ){
		this.createdTimeEnd = createdTimeEnd;
	}
 
}
